Power adapter, terminal, and method for processing exception of charging loop

ABSTRACT

A power adapter ( 10 ) comprises a power conversion unit ( 11 ), a charging interface ( 12 ), an exception detection unit ( 13 ), and an exception processing unit ( 14 ). The power conversion unit forms a charging loop with a terminal ( 20 ) through the charging interface, so as to charge a battery ( 21 ) of the terminal. The exception detection unit detects whether an exception occurs on the charging loop. When the exception occurs on the charging loop, the exception processing unit controls the charging loop to enter into a protection state. The power adapter can improve the security of a charging process. Also provided are a terminal, and a method for processing an exception of a charging loop.

TECHNICAL FIELD

Embodiments of the present disclosure relate to the charging technical field, and more particularly, to a power adapter, a terminal and a method for handling an anomaly in a charging loop.

BACKGROUND

Currently, batteries in most of electronic devices are connected with external power adapters via charging interfaces of the electronic devices to realize charging. In order to reduce charging time during charging the battery, the charging current can be enhanced for realizing a quick charging on the battery in the related art. However, if an anomaly occurs in a charging loop, for example, an output voltage of the power adapter is an over-voltage and/or an output current of the power adapter is an over-current, the battery will be damaged, no matter whether the battery is charged in a conventional constant voltage mode or with increased charging current. Therefore, the anomaly in the charging loop cannot be detected and handled in the related art, such that the safety during the charging is poor.

DISCLOSURE

Embodiments of the present disclosure provide a power adapter, a terminal and a method for handling an anomaly in a charging loop, so as to improve the safety during the charging.

In a first aspect, a power adapter is provided, including a power conversion unit and a charging interface. The power conversion unit is configured to form a charging loop with a terminal via the charging interface so as to charge a battery of the terminal. The power adapter further includes: an anomaly detection unit and an anomaly handling unit. The anomaly detection unit is configured to detect whether an anomaly occurs in the charging loop. The anomaly handling unit is configured to control the charging loop to enter into a protection state if the anomaly occurs in the charging loop.

Combined with the first aspect, in an implementation of the first aspect, the power adapter further includes a communication unit. The communication is configured to send charging protection indicative information to the terminal if the anomaly occurs in the charging loop, so as to indicate the terminal to control the charging loop to enter into the protection state.

Combined with any one of the first aspect and the above implementation, in another implementation of the first aspect, the charging interface includes a power wire and a data wire. The power conversion unit is configured to form the charging loop with the terminal via the charging interface so as to charge the battery of the terminal, and specifically to form the charging loop with the terminal via the power wire in the charging interface so as to charge the battery of the terminal. The communication unit is configured to send the charging protection indicative information to the terminal, and specifically to send the charging protection indicative information to the terminal via the data wire in the charging interface.

Combined with any one of the first aspect and the above implementations, in another implementation of the first aspect, the anomaly handling unit is configured to control the charging loop to enter into the protection state, and specifically to: reduce an output voltage of the power adapter; reduce an output current of the power adapter; or disconnect the charging loop.

Combined with any one of the first aspect and the above implementations, in another implementation of the first aspect, the anomaly occurring in the charging loop includes at least one of following anomalies that: the output voltage of the power adapter is an over-voltage;

the output current of the power adapter is an over-current; a voltage at two ends of the battery is an over-voltage; a current at the two ends of the battery is an over-current; and a temperature of the battery is an over-temperature.

Combined with any one of the first aspect and the above implementations, in another implementation of the first aspect, the anomaly detection unit is configured to detect whether the anomaly occurs in the charging loop, and specifically to: detect the output voltage of the power adapter; compare the output voltage of the power adapter with a first voltage threshold; and determine that the output voltage of the power adapter is the over-voltage and that the anomaly occurs in the charging loop, if the output voltage is greater than the first voltage threshold.

Combined with any one of the first aspect and the above implementations, in another implementation of the first aspect, the power adapter further includes a communication unit. The communication unit is configured to send first indicative information to the terminal if the output voltage of the power adapter is less than the first voltage threshold. The first indicative information includes the value of the output voltage of the power adapter and is used to indicate the terminal to re-determine based on a second voltage threshold set at the terminal side whether the output voltage of the power adapter is the over-voltage.

Combined with any one of the first aspect and the above implementations, in another implementation of the first aspect, the anomaly handling unit includes a first over-voltage protection unit and a second over-voltage protection unit. The anomaly handling unit is configured to control the charging loop to enter into the protection state, and specifically to: control the charging loop to enter into the protection state through the first over-voltage protection unit; and control the charging loop to enter into the protection state through the second over-voltage protection unit, if the first over-voltage protection unit loses efficacy.

Combined with any one of the first aspect and the above implementations, in another implementation of the first aspect, the anomaly detection unit is configured to detect whether the anomaly occurs in the charging loop, and specifically to: detect the output current of the power adapter; compare the output current of the power adapter with a first current threshold; and determine that the output current of the power adapter is the over-current and that the anomaly occurs in the charging loop, if the output current is greater than the first current threshold.

Combined with any one of the first aspect and the above implementations, in another implementation of the first aspect, the power adapter further includes a communication unit. The communication is configured to send second indicative information to the terminal if the output current of the power adapter is less than the first current threshold. The second indicative information includes the value of the output current of the power adapter and is used to indicate the terminal to re-determine based on a second current threshold set at the terminal side whether the output current of the power adapter is the over-current.

Combined with any one of the first aspect and the above implementations, in another implementation of the first aspect, the power adapter further includes a communication unit. The communication is configured to receive a battery parameter detected by the terminal. The battery parameter is used to indicate the voltage at the two ends of the battery, the current at the two ends of the battery or the temperature of the battery. The anomaly detection unit is configured to detect whether the anomaly occurs in the charging loop, and specifically to: determine whether the battery parameter received by the communication unit is greater than a predetermined battery parameter threshold; and determine that the anomaly occurs in the charging loop, if the battery parameter is greater than the predetermined battery parameter threshold.

In a second aspect, a terminal is provided. The terminal includes a battery and a charging interface. The terminal is configured to form a charging loop with a power adapter via the charging interface so as to charge the battery. The terminal further includes a communication unit and an anomaly handling unit. The communication unit is configured to receive charging protection indicative information from the power adapter if an anomaly occurs in the charging loop. The anomaly handling unit is configured to control the charging loop to enter into a protection state according to an indication of the charging protection indicative information.

Combined with the second aspect, in an implementation of the second aspect, the charging interface includes a power wire and a data wire. The terminal is configured to form the charging loop with the power adapter via the charging interface so as to charge the battery, and specifically to form the charging loop with the power adapter via the power wire in the charging interface so as to charge the battery. The communication unit is configured to receive the charging protection indicative information from the power adapter via the charging interface, and specifically to receive the charging protection indicative information from the power adapter via the data wire in the charging interface.

Combined with any one of the second aspect and the above implementation, in another implementation of the second aspect, the anomaly occurring in the charging loop includes at least one of following anomalies that: an output voltage of the power adapter is an over-voltage; an output current of the power adapter is an over-current; a voltage at two ends of the battery is an over-voltage; a current at the two ends of the battery is an over-current; and a temperature of the battery is an over-temperature.

Combined with any one of the second aspect and the above implementations, in another implementation of the second aspect, the terminal further includes a detection unit. The detection unit is configured to determine a battery parameter of the battery. The battery parameter includes: the voltage at the two ends of the battery, the current at the two ends of the battery or the temperature of the battery. The communication unit is further configured to send information indicating the battery parameter to the power adapter.

In a third aspect, a method for handling an anomaly in a charging loop is provided, including: detecting, by a power adapter, whether the anomaly occurs in the charging loop between the power adapter and a terminal; and controlling, by the power adapter, the charging loop to enter into a protection state if the anomaly occurs in the charging loop.

Combined with the third aspect, in an implementation of the third aspect, the method further includes: sending, by the power adapter, charging protection indicative information to the terminal, so as to indicate the terminal to control the charging loop to enter into the protection state.

Combined with any one of the third aspect and the above implementations, in another implementation of the third aspect, the power adapter is contacted with the terminal through a charging interface, in which the charging interface includes: a power wire for charging, and a data wire; and sending, by the power adapter, the charging protection indicative information to the terminal includes: sending, by the power adapter, the charging protection indicative information to the terminal through the data wire.

Combined with any one of the third aspect and the above implementations, in another implementation of the third aspect, controlling, by the power adapter, the charging loop to enter into the protection state includes: reducing, by the power adapter, an output voltage of the power adapter; reducing, by the power adapter, an output current of the power adapter; or disconnecting, by the power adapter, the charging loop.

Combined with any one of the third aspect and the above implementations, in another implementation of the third aspect, the anomaly occurring in the charging loop includes at least one of following anomalies that: the output voltage of the power adapter is an over-voltage; the output current of the power adapter is an over-current; a voltage at two ends of a battery is an over-voltage; a current at the two ends of the battery is an over-current; and a temperature of the battery is an over-temperature.

Combined with any one of the third aspect and the above implementations, in another implementation of the third aspect, detecting, by the power adapter, whether the anomaly occurs in the charging loop between the power adapter and the terminal includes: detecting, by the power adapter, the output voltage of the power adapter; and determining, by the power adapter, that the output voltage is the over-voltage and that the anomaly occurs in the charging loop, if the output voltage is greater than a first voltage threshold.

Combined with any one of the third aspect and the above implementations, in another implementation of the third aspect, the method further includes: sending, by the power adapter, first indicative information to the terminal if the output voltage of the power adapter is less than the first voltage threshold. The first indicative information includes the value of the output voltage of the power adapter and is used to indicate the terminal to re-determine based on a second voltage threshold set at the terminal side whether the output voltage of the power adapter is the over-voltage.

Combined with any one of the third aspect and the above implementations, in another implementation of the third aspect, detecting, by the power adapter, whether the anomaly occurs in the charging loop between the power adapter and the terminal includes: detecting, by the power adapter, the output current of the power adapter; and determining, by the power adapter, that the output current is the over-current and that the anomaly occurs in the charging loop, if the output current is greater than a first current threshold.

Combined with any one of the third aspect and the above implementations, in another implementation of the third aspect, the method further includes: sending, by the power adapter, second indicative information to the terminal if the output current of the power adapter is less than the first current threshold. The second indicative information includes the value of the output current of the power adapter and is used to indicate the terminal to re-determine based on a second current threshold set at the terminal side whether the output current of the power adapter is the over-current.

Combined with any one of the third aspect and the above implementations, in another implementation of the third aspect, the method further includes: receiving a battery parameter detected by the terminal. The battery parameter is used to indicate the voltage at the two ends of the battery, the current at the two ends of the battery or the temperature of the battery. Controlling, by the power adapter, the charging loop to enter into the protection state includes: determining, by the power adapter, whether the battery parameter is greater than a predetermined battery parameter threshold; and determining, by the power adapter, that the anomaly occurs in the charging loop, if the battery parameter is greater than the predetermined battery parameter threshold.

In a fourth aspect, a method for handling an anomaly in a charging loop is provided, including: receiving, by a terminal, charging protection indicative information from a power adapter if the anomaly occurs in the charging loop between the power adapter and the terminal; and controlling, by the terminal, the charging loop to enter into a protection state according to an indication of the charging protection indicative information.

Combined with the fourth aspect, in an implementation of the fourth aspect, the power adapter is contacted with the terminal through a charging interface. The charging interface includes: a power wire for charging, and a data wire. Receiving, by the terminal, the charging protection indicative information from the power adapter includes: receiving, by the terminal, the charging protection indicative information from the power adapter through the data wire in the charging interface.

Combined with any one of the fourth aspect and the above implementation, in another implementation of the fourth aspect, the anomaly occurring in the charging loop includes at least one of following anomalies that: an output voltage of the power adapter is an over-voltage; an output current of the power adapter is an over-current; a voltage at two ends of a battery is an over-voltage; a current at the two ends of the battery is an over-current; and a temperature of the battery is an over-temperature.

Combined with any one of the fourth aspect and the above implementations, in another implementation of the fourth aspect, the method further includes: determining, by the terminal, a battery parameter of the battery, in which the battery parameter is used to indicate the voltage at the two ends of the battery, the current at the two ends of the battery or the temperature of the battery; and sending, by the terminal, information indicating the battery parameter to the power adapter.

In embodiments of the present disclosure, the power adapter detects whether the anomaly occurs in the charging loop through the anomaly detection unit, and controls the charging loop to enter into the protection state through the anomaly handling unit if it is detected that the anomaly occurs in the charging loop, such that the safety during the charging is improved.

BRIEF DESCRIPTION OF THE DRAWINGS

In order to make the technical solutions of embodiments of the present disclosure more clearly, the accompanying drawings used in the description of embodiments of the present disclosure are briefly described hereunder. Obviously, the described drawings are merely some embodiments of present disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without any creative work.

FIG. 1 is a schematic block diagram showing a power adapter according to an embodiment of the present disclosure;

FIG. 2 is a schematic block diagram showing a terminal according to an embodiment of the present disclosure;

FIG. 3 is a schematic flow chart showing a method for handling an anomaly in a charging loop according to an embodiment of the present disclosure; and

FIG. 4 is a schematic flow chart showing a method for handling an anomaly in a charging loop according to an embodiment of the present disclosure.

DETAILED DESCRIPTION

The technical solutions in embodiments of the present disclosure are hereinafter described clearly and completely with reference to the accompanying drawings in embodiments of the present disclosure. Apparently, the described embodiments are merely a part of embodiments of the present disclosure, rather than all embodiments of the present disclosure. All other embodiments obtained by those skilled in the art based on embodiments of the present disclosure without creative efforts shall fall within the protection scope of the present disclosure.

FIG. 1 is a schematic block diagram showing a power adapter according to an embodiment of the present disclosure. The power adapter 10 shown in FIG. 1 includes: a power conversion unit 11 and a charging interface 12. The power conversion unit 11 is configured to form a charging loop with a terminal through the charging interface 12, so as to charge a battery of the terminal. The power adapter 10 further includes an anomaly detection unit 13 and an anomaly handling unit 14.

The anomaly detection unit 13 is configured to detect whether an anomaly occurs in the charging loop. The anomaly handling unit 14 is configured to control the charging loop to enter into a protection state if the anomaly occurs in the charging loop.

It should be understood that, the above anomaly handling unit 14 is configured to control the charging loop to enter into the protection state, and specifically to: reduce an output voltage of the power adapter 10; reduce an output current of the power adapter 10; or disconnect the charging loop.

In embodiments of the present disclosure, the power adapter detects whether the anomaly occurs in the charging loop through the anomaly detection unit, and controls the charging loop to enter into the protection state through the anomaly handling unit if it is detected that the anomaly occurs in the charging loop, such that the safety during the charging is improved.

Alternatively, as an embodiment, the power adapter 10 can further include a communication unit. The communication unit is configured to send charging protection indicative information to the terminal if the anomaly occurs in the charging loop, so as to indicate the terminal to control the charging loop to enter into the protection state.

In embodiments of the present disclosure, if the anomaly occurs in the charging loop, the power adapter not only actively controls the charging loop to enter into the protection state, but also tells the terminal to control the charging loop to enter into the protection state. In this way, even if the anomaly handling unit of the power adapter loses efficacy and cannot control the charging loop to enter into the protection state, the terminal can control the charging loop to enter into the protection state, such that the safety during the charging is further improved.

Alternatively, as an embodiment, the charging interface 12 can include a power wire and a data wire. The power conversion unit 11 is configured to form the charging loop with the terminal through the charging interface 12 so as to charge the battery of the terminal, and specifically to form the charging loop with the terminal through the power wire in the charging interface 12 so as to charge the battery of the terminal. The communication unit is configured to send the charging protection indicative information to the terminal, and specifically to send the charging protection indicative information to the terminal through the data wire in the charging interface 12.

For example, the charging interface is a USB (Universal Serial Bus) interface or a micro USB interface. The above power wire is a power wire in the USB interface, such as +5V power wire and −5V power wire. The above data wire is a data wire in the USB interface, such as D+ wire and D− wire.

It should be understood that, there can be various reasons resulting in the anomaly in the charging loop. For example, an output voltage of the power adapter is an over-voltage, an output current of the power adapter is an over-current, a voltage at two ends of the battery is an over-voltage, a current at two ends of the battery is an over-current, and a temperature of the battery is an over-temperature. Different anomalies can be detected by different detection ways. The various anomalies and detection ways thereof will be described exemplarily by combining with specific embodiments.

Alternatively, as an embodiment, the anomaly detection unit 13 is configured to detect whether the anomaly occurs in the charging loop, and specifically to: detect the output voltage of the power adapter 10; compare the output voltage of the power adapter 10 with a voltage threshold; determine that the output voltage of the power adapter 10 is the over-voltage and that the anomaly occurs in the charging loop if the output voltage is greater than the voltage threshold.

It should be understood that, the above voltage threshold can be set according to the specific model numbers of the power adapter 10 and the terminal or based on experiences.

Further, the power adapter 10 can further include a communication unit. The communication unit is configured to send first indicative information to the terminal if the output voltage of the power adapter 10 is less than the voltage threshold. The first indicative information includes the value of the output voltage of the power adapter 10 and is used to indicate the terminal to re-determine based on a voltage threshold set at the terminal side whether the output voltage of the power adapter 10 is the over-voltage.

In other words, both the power adapter and the terminal detect whether the output voltage of the power adapter is the over-voltage. In this way, even if a detection result of the power adapter is wrong (for example, the anomaly detection unit of the power adapter has a breakdown), the terminal can detect whether the output voltage of the power adapter is the over-voltage, such that the terminal can control the charging loop to enter into the protection state. Alternatively, the power adapter and the terminal do not form a complete set, the situation that a safe output voltage defined by the power adapter exceeds an acceptable range of the terminal can occur. By detecting by both the power adapter and the terminal whether the output voltage of the power adapter is the over-voltage, this situation can be avoided effectively and the safety during the charging can be further improved.

Further, the anomaly handling unit 14 can include a redundancy over-voltage processing unit. That is, when one over-voltage processing unit loses efficacy, the anomaly handling unit 14 can control the charging loop to enter into the protection state through other over-voltage processing unit.

Alternatively, as an embodiment, the anomaly detection unit 13 is configured to detect whether the anomaly occurs in the charging loop, and specifically to: detect the output current of the power adapter 10; compare the output current of the power adapter 10 with a current threshold; determine that the output current of the power adapter 10 is the over-current and that the anomaly occurs in the charging loop if the output current is greater than the current threshold.

It should be understood that, the above current threshold can be set according to the specific model numbers of the power adapter 10 and the terminal or based on experiences.

Further, the power adapter 10 can further include a communication unit. The communication unit is configured to send second indicative information to the terminal if the output current of the power adapter 10 is less than the current threshold. The second indicative information includes the value of the output current of the power adapter 10 and is used to indicate the terminal to re-determine based on a current threshold set at the terminal side whether the output current of the power adapter 10 is the over-current.

In other words, both the power adapter and the terminal detect whether the output current of the power adapter is the over-current. In this way, even if a detection result of the power adapter is wrong (for example, a detection circuit of the power adapter has a breakdown), the terminal can detect whether the output current of the power adapter is the over-current, such that the terminal can control the charging loop to enter into the protection state. Alternatively, the power adapter and the terminal do not form a complete set, the situation that a safe output current defined by the power adapter exceeds an acceptable range of the terminal can occur. By detecting by both the power adapter and the terminal whether the output current of the power adapter is the over-current, this situation can be avoided effectively and the safety during the charging can be further improved.

Alternatively, as an embodiment, the power adapter 10 can further include: a communication unit. The communication unit is configured to receive a battery parameter detected by the terminal. The battery parameter is used to indicate the voltage at two ends of the battery, the current at two ends of the battery or the temperature of the battery. The anomaly detection unit 13 is configured to detect whether the anomaly occurs in the charging loop, and specifically to: determine whether the battery parameter received by the communication unit is greater than a predetermined battery parameter threshold; and determine that the anomaly occurs in the charging loop, if the battery parameter is greater than the predetermined battery parameter threshold.

For example, the battery parameter is the voltage at the two ends of the battery, the anomaly detection unit 13 is configured to determine whether the voltage at the two ends of the battery is greater than a threshold. The anomaly detection unit 13 is configured to determine that the voltage at the two ends of the battery is the over-voltage and that the anomaly occurs in the charging loop, if the voltage at the two ends of the battery is greater than the threshold. As another example, the battery parameter is the current at the two ends of the battery, the anomaly detection unit 13 is configured to determine whether the current at the two ends of the battery is greater than a threshold. The anomaly detection unit 13 is configured to determine that the current at the two ends of the battery is the over-current and that the anomaly occurs in the charging loop, if the current at the two ends of the battery is greater than the threshold. As a still example, the battery parameter is the temperature of the battery, the anomaly detection unit 13 is configured to determine whether the temperature of the battery is greater than a threshold. The anomaly detection unit 13 is configured to determine that the temperature of the battery is the over-temperature and that the anomaly occurs in the charging loop, if the temperature the battery is greater than the threshold.

The power adapter according to embodiments of the present disclosure is described in detail above by combining with FIG. 1. A terminal according to embodiments of the present disclosure will be described in detail below by combining with FIG. 2.

FIG. 2 is a schematic block diagram showing a terminal according to an embodiment of the present disclosure. The terminal shown in FIG. 2 includes: a battery 21 and a charging interface 22. The terminal is configured to form a charging loop with a power adapter through the charging interface 22, so as to charge the battery 21. The terminal 20 further includes a communication unit 23 and an anomaly handling unit 24. The communication unit 23 is configured to receive charging protection indicative information from the power adapter if an anomaly occurs in the charging loop. The anomaly handling unit 24 is configured to control the charging loop to enter into the protection state according to an indication of the charging protection indicative information.

It should be understood that, the above anomaly handling unit 24 is configured to control the charging loop to enter into the protection state according to the indication of the charging protection indicative information, and specifically: reduce an output current of the power adapter according to the indication of the charging protection indicative information; or reduce an output voltage of the power adapter according to the indication of the charging protection indicative information; or control the charging loop to be disconnected according to the indication of the charging protection indicative information.

In embodiments of the present disclosure, if the anomaly occurs in the charging loop between the power adapter and the terminal, the communication unit of the terminal receives the charging protection indicative information from the power adapter and controls the charging loop to enter into the protection state according the indication of the charging protection indicative information, such that the safety during the charging is improved.

Alternatively, as an embodiment, the charging interface 22 can include a power wire and a data wire. The terminal 20 is configured to form the charging loop with the power adapter through the charging interface 22 so as to charge the battery, and specifically to form the charging loop with the power adapter through the power wire in the charging interface 22 so as to charge the battery. The communication unit 23 is configured to receive the charging protection indicative information from the power adapter, and specifically to receive the charging protection indicative information from the power adapter through the date wire in the charging interface 22.

For example, the charging interface is a USB (Universal Serial Bus) interface or a micro USB interface. The above power wire is a power wire in the USB interface, such as +5V power wire and −5V power wire. The above data wire is a data wire in the USB interface, such as D+ wire and D− wire.

Alternatively, as an embodiment, the anomaly in the charging loop includes at least one of the following anomalies that: an output voltage of the power adapter is an over-voltage, an output current of the power adapter is an over-current, a voltage at two ends of the battery is an over-voltage, a current at two ends of the battery is an over-current, and a temperature of the battery is an over-temperature.

Alternatively, as an embodiment, the terminal further includes: a detection unit. The detection unit is configured to determine a battery parameter of the battery. The battery parameter can include: the voltage at the two ends of the battery, the current at the two ends of the battery or the temperature of the battery. The communication unit 23 is further configured to send information indicating the battery parameter to the power adapter.

FIG. 3 is a schematic flow chart showing a method for handling an anomaly in a charging loop according to an embodiment of the present disclosure. The method shown in FIG. 3 is executed by the power adapter shown in FIG. 1, which is not described herein to avoid needless duplication. The method in FIG. 3 includes the following steps.

In step 310, the power adapter detects whether the anomaly occurs in the charging loop between the power adapter and a terminal.

In step 320, if the anomaly occurs in the charging loop, the power adapter controls the charging loop to enter into a protection state.

In embodiments of the present disclosure, the power adapter detects whether the anomaly occurs in the charging loop through the anomaly detection unit, and controls the charging loop to enter into the protection state through the anomaly handling unit if it is detected that the anomaly occurs in the charging loop, such that the safety during the charging is improved.

Alternatively, as an embodiment, the method in FIG. 3 can further include: sending by the power adapter charging protection indicative information to the terminal, so as to indicate the terminal to control the charging loop to enter into the protection state.

Alternatively, as an embodiment, the power adapter is contacted with the terminal through a charging interface. The charging interface includes a power wire for charging and a data wire. Sending by the power adapter the charging protection indicative information to the terminal includes: sending by the power adapter the charging protection indicative information to the terminal through the data wire.

Alternatively, as an embodiment, controlling by the power adapter the charging loop to enter into the protection state includes: reducing by the power adapter an output voltage of the power adapter; reducing by the power adapter an output current of the power adapter; or disconnecting by the power adapter the charging loop.

Alternatively, as an embodiment, the anomaly in the charging loop includes at least one of the following anomalies that: the output voltage of the power adapter is an over-voltage, the output current of the power adapter is an over-current, a voltage at two ends of a battery is an over-voltage, a current at two ends of the battery is an over-current, and a temperature of the battery is an over-temperature.

Alternatively, as an embodiment, detecting by the power adapter whether the anomaly occurs in the charging loop between the power adapter and the terminal includes:

detecting by the power adapter the output voltage of the power adapter; determining by the power adapter that the output voltage is the over-voltage and that the anomaly occurs in the charging loop, if the output voltage is greater than a voltage threshold.

Alternatively, as an embodiment, the method in FIG. 3 can further include: sending by the power adapter first indicative information to the terminal if the output voltage of the power adapter is less than the voltage threshold. The first indicative information includes the value of the output voltage of the power adapter and is used to indicate the terminal to re-determine based on a voltage threshold set at the terminal side whether the output voltage of the power adapter is the over-voltage.

Alternatively, as an embodiment, detecting by the power adapter whether the anomaly occurs in the charging loop between the power adapter and the terminal includes: detecting by the power adapter the output current of the power adapter; determining by the power adapter that the output current is the over-current and that the anomaly occurs in the charging loop, if the output current is greater than a current threshold.

Alternatively, as an embodiment, the method in FIG. 3 can further include: sending by the power adapter second indicative information to the terminal if the output current of the power adapter is less than the current threshold. The second indicative information includes the value of the output current of the power adapter and is used to indicate the terminal to re-determine based on a current threshold set at the terminal side whether the output current of the power adapter is the over-current.

Alternatively, as an embodiment, the method in FIG. 3 can further include: receiving a battery parameter detected by the terminal. The battery parameter is used to indicate the voltage at the two ends of the battery, the current at the two ends of the battery or the temperature of the battery. Controlling by the power adapter the charging loop to enter into the protection state includes: determining by the power adapter whether the battery parameter is greater than a predetermined battery parameter threshold; determining by the power adapter that the anomaly occurs in the charging loop if the battery parameter is greater than the predetermined battery parameter threshold.

FIG. 4 is a schematic flow chart showing a method for handling an anomaly in a charging loop according to an embodiment of the present disclosure. The method shown in FIG. 4 is executed by the terminal shown in FIG. 2, which is not described herein to avoid needless duplication.

In step 410, if the anomaly occurs in the charging loop between a power adapter and the terminal, the terminal receives charging protection indicative information from the power adapter.

In step 420, the terminal controls the charging loop to enter into a protection state according to an indication of the charging protection indicative information.

In embodiments of the present disclosure, if the anomaly occurs in the charging loop between the power adapter and the terminal, the communication unit of the terminal receives the charging protection indicative information from the power adapter and controls the charging loop to enter into the protection state, such that the safety during the charging is improved.

Alternatively, as an embodiment, the power adapter is contacted with the terminal through a charging interface. The charging interface includes a power wire for charging and a data wire. Receiving by the terminal the charging protection indicative information from the power adapter includes: receiving by the terminal the charging protection indicative information from the power adapter through the data wire in the charging interface.

Alternatively, as an embodiment, the anomaly in the charging loop includes at least one of the following anomalies that: an output voltage of the power adapter is an over-voltage, an output current of the power adapter is an over-current, a voltage at two ends of a battery is an over-voltage, a current at the two ends of the battery is an over-current, and a temperature of the battery is an over-temperature.

Alternatively, as an embodiment, the method in FIG. 4 can further include: determining by the terminal a battery parameter of the battery. The battery parameter includes the voltage at the two ends of the battery, the current at the two ends of the battery or the temperature of the battery. The method in FIG. 4 can further include: sending by the terminal information indicating the battery parameter to the power adapter.

Those skilled in the art can be aware that, in combination with the examples described in the embodiments disclosed in this specification, units and algorithm steps can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether the functions are executed by hardware or software depends on particular applications and design constraint conditions of the technical solutions. Those skilled in the art can use different methods to implement the described functions for each particular application, but it should not be considered that the implementation goes beyond the scope of the present disclosure.

It would be appreciated by those skilled in the art that, for the purpose of simplification convenience of description, concerning the specific working process of the above system, device and unit as described above, reference is made to the method embodiments of the present disclosure, which will not be elaborated herein.

In several embodiments provided in the application, it should be understood that the disclosed system, device and method can be realized by other manners. For example, the above-described embodiments are only exemplary; for example, the division of said unit is only a logic function division; there can be additional dividing manners during the actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored, or not implemented. Another point, the displayed or discussed mutual coupling or direct coupling or communication connection can be indirect coupling or communication connection of devices or units via some interfaces, in electronic, mechanical, or other forms.

Said unit described as a separation part can be or can not be separated physically; the part displayed as a unit can be or can not be a physical unit, namely it can be located in one place, or can be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.

In addition, all functional units in the embodiments of the disclosure can be integrated in one processing unit, or each unit exists individually in physical form, or two or more units are integrated in one unit.

If said function is realized in the form of software function unit and sold or used as an independent product, it can be stored in a computer readable storage medium. With such an understanding, the technical solution of the disclosure substantially or its portion that contributes to the prior art or a portion of the technical solution can embody in the form of a computer software product which is stored in a memory media, including a plurality of instructions such that a computer (can be a personal computer, a server, or a network device, etc.) executes all or some steps of the methods described in each of all the embodiments. And the previously mentioned memory media include such media capable of storing program codes as USB flash disk, portable hard drive, read-only memory (ROM), random access memory (RAM), floppy disk or compact disk.

The above descriptions are only specific embodiments of the disclosure, but not intended to limit the protection scope of the disclosure. The variation or replacement easily thought of by those of skill in the art within the technical scope disclosed by the disclosure, shall fall within the protection scope of the disclosure. Therefore, the protection scope of the disclosure shall be determined with reference to the protection scope of the claims. 

What is claimed is:
 1. A power adapter, comprising a power conversion unit and a charging interface, the power conversion unit being configured to form a charging loop with a terminal via the charging interface so as to charge a battery of the terminal, and being characterized at that, the power adapter further comprises an anomaly detection unit and an anomaly handling unit; wherein the anomaly detection unit is configured to detect whether an anomaly occurs in the charging loop, and the anomaly handling unit is configured to control the charging loop to enter into a protection state if the anomaly occurs in the charging loop.
 2. The power adapter according to claim 1, being characterized at, further comprising: a communication unit, configured to send charging protection indicative information to the terminal if the anomaly occurs in the charging loop, so as to indicate the terminal to control the charging loop to enter into the protection state.
 3. The power adapter according to claim 2, being characterized at that, the charging interface comprises a power wire and a data wire; the power conversion unit is configured to form the charging loop with the terminal via the charging interface so as to charge the battery of the terminal, and specifically to: form the charging loop with the terminal via the power wire in the charging interface so as to charge the battery of the terminal; and the communication unit is configured to send the charging protection indicative information to the terminal, and specifically to: send the charging protection indicative information to the terminal via the data wire in the charging interface.
 4. The power adapter according to any one of claims 1-3, being characterized at that, the anomaly handling unit is configured to control the charging loop to enter into the protection state, and specifically to: reduce an output voltage of the power adapter; reduce an output current of the power adapter; or disconnect the charging loop.
 5. The power adapter according to any one of claims 1-3, being characterized at that, the anomaly occurring in the charging loop comprises at least one of following anomalies that: an output voltage of the power adapter is an over-voltage; an output current of the power adapter is an over-current; a voltage at two ends of the battery is an over-voltage; a current at the two ends of the battery is an over-current; and a temperature of the battery is an over-temperature.
 6. The power adapter according to claim 5, being characterized at that, the anomaly detection unit is configured to detect whether the anomaly occurs in the charging loop, and specifically to: detect the output voltage of the power adapter; compare the output voltage of the power adapter with a first voltage threshold; and determine that the output voltage of the power adapter is the over-voltage and that the anomaly occurs in the charging loop, if the output voltage is greater than the first voltage threshold.
 7. The power adapter according to claim 6, being characterized at, further comprising: a communication unit, configured to send first indicative information to the terminal if the output voltage of the power adapter is less than the first voltage threshold, wherein the first indicative information comprises the value of the output voltage of the power adapter and is used to indicate the terminal to re-determine based on a second voltage threshold set at the terminal side whether the output voltage of the power adapter is the over-voltage.
 8. The power adapter according to claim 6 or 7, being characterized at that, the anomaly handling unit comprises a first over-voltage protection unit and a second over-voltage protection unit; and the anomaly handling unit is configured to control the charging loop to enter into the protection state, and specifically to: control the charging loop to enter into the protection state through the first over-voltage protection unit; and control the charging loop to enter into the protection state through the second over-voltage protection unit, if the first over-voltage protection unit loses efficacy.
 9. The power adapter according to claim 5, being characterized at that, the anomaly detection unit is configured to detect whether the anomaly occurs in the charging loop, and specifically to: detect the output current of the power adapter; compare the output current of the power adapter with a first current threshold; and determine that the output current of the power adapter is the over-current and that the anomaly occurs in the charging loop, if the output current is greater than the first current threshold.
 10. The power adapter according to claim 9, being characterized at, further comprising: a communication unit, configured to send second indicative information to the terminal if the output current of the power adapter is less than the first current threshold, wherein the second indicative information comprises the value of the output current of the power adapter and is used to indicate the terminal to re-determine based on a second current threshold set at the terminal side whether the output current of the power adapter is the over-current.
 11. The power adapter according to claim 5, being characterized at, further comprising a communication unit; wherein the communication unit is configured to receive a battery parameter detected by the terminal, wherein the battery parameter is used to indicate the voltage at the two ends of the battery, the current at the two ends of the battery or the temperature of the battery; the anomaly detection unit is configured to detect whether the anomaly occurs in the charging loop, and specifically to: determine whether the battery parameter received by the communication unit is greater than a predetermined battery parameter threshold; and determine that the anomaly occurs in the charging loop, if the battery parameter is greater than the predetermined battery parameter threshold.
 12. A terminal, comprising a battery and a charging interface, the terminal being configured to form a charging loop with a power adapter via the charging interface so as to charge the battery, and being characterized at that, the terminal further comprises a communication unit and an anomaly handling unit, wherein the communication unit is configured to receive charging protection indicative information from the power adapter if an anomaly occurs in the charging loop; and the anomaly handling unit is configured to control the charging loop to enter into a protection state according to an indication of the charging protection indicative information.
 13. The terminal according to claim 12, being characterized at that, the charging interface comprises a power wire and a data wire, the terminal is configured to form the charging loop with the power adapter via the charging interface so as to charge the battery, and specifically to: form the charging loop with the power adapter via the power wire in the charging interface so as to charge the battery; and the communication unit is configured to receive the charging protection indicative information from the power adapter via the charging interface, and specifically to: receive the charging protection indicative information from the power adapter via the data wire in the charging interface.
 14. The terminal according to claim 12 or 13, being characterized at that, the anomaly occurring in the charging loop comprises at least one of following anomalies that: an output voltage of the power adapter is an over-voltage; an output current of the power adapter is an over-current; a voltage at two ends of the battery is an over-voltage; a current at the two ends of the battery is an over-current; and a temperature of the battery is an over-temperature.
 15. The terminal according to claim 14, being characterized at, further comprising a detection unit, wherein the detection unit is configured to determine a battery parameter of the battery, wherein the battery parameter comprises: the voltage at the two ends of the battery, the current at the two ends of the battery or the temperature of the battery; the communication unit is further configured to send information indicating the battery parameter to the power adapter.
 16. A method for handling an anomaly in a charging loop, being characterized at, comprising: detecting, by a power adapter, whether the anomaly occurs in the charging loop between the power adapter and a terminal; and controlling, by the power adapter, the charging loop to enter into a protection state if the anomaly occurs in the charging loop.
 17. The method according to claim 16, being characterized at, further comprising: sending, by the power adapter, charging protection indicative information to the terminal, so as to indicate the terminal to control the charging loop to enter into the protection state.
 18. The method according to claim 17, being characterized at that, the power adapter is contacted with the terminal through a charging interface, wherein the charging interface comprises: a power wire for charging, and a data wire; and sending, by the power adapter, the charging protection indicative information to the terminal comprises: sending, by the power adapter, the charging protection indicative information to the terminal through the data wire.
 19. The method according to any one of claims 16-18, being characterized at that, controlling, by the power adapter, the charging loop to enter into the protection state comprises: reducing, by the power adapter, an output voltage of the power adapter; reducing, by the power adapter, an output current of the power adapter; or disconnecting, by the power adapter, the charging loop.
 20. The method according to any one of claims 16-18, being characterized at that, the anomaly occurring in the charging loop comprises at least one of following anomalies that: an output voltage of the power adapter is an over-voltage; an output current of the power adapter is an over-current; a voltage at two ends of a battery is an over-voltage; a current at the two ends of the battery is an over-current; and a temperature of the battery is an over-temperature.
 21. The method according to claim 20, being characterized at that, detecting, by the power adapter, whether the anomaly occurs in the charging loop between the power adapter and the terminal comprises: detecting, by the power adapter, the output voltage of the power adapter; and determining, by the power adapter, that the output voltage is the over-voltage and that the anomaly occurs in the charging loop, if the output voltage is greater than a first voltage threshold.
 22. The method according to claim 21, being characterized at, further comprising: sending, by the power adapter, first indicative information to the terminal if the output voltage of the power adapter is less than the first voltage threshold, wherein the first indicative information comprises the value of the output voltage of the power adapter and is used to indicate the terminal to re-determine based on a second voltage threshold set at the terminal side whether the output voltage of the power adapter is the over-voltage.
 23. The method according to claim 20, being characterized at that, detecting, by the power adapter, whether the anomaly occurs in the charging loop between the power adapter and the terminal comprises: detecting, by the power adapter, the output current of the power adapter; and determining, by the power adapter, that the output current is the over-current and that the anomaly occurs in the charging loop, if the output current is greater than a first current threshold.
 24. The method according to claim 23, being characterized at, further comprising: sending, by the power adapter, second indicative information to the terminal if the output current of the power adapter is less than the first current threshold, wherein the second indicative information comprises the value of the output current of the power adapter and is used to indicate the terminal to re-determine based on a second current threshold set at the terminal side whether the output current of the power adapter is the over-current.
 25. The method according to claim 20, being characterized at, further comprising: receiving a battery parameter detected by the terminal, wherein the battery parameter is used to indicate the voltage at the two ends of the battery, the current at the two ends of the battery or the temperature of the battery; wherein controlling, by the power adapter, the charging loop to enter into the protection state comprises: determining, by the power adapter, whether the battery parameter is greater than a predetermined battery parameter threshold; and determining, by the power adapter, that the anomaly occurs in the charging loop, if the battery parameter is greater than the predetermined battery parameter threshold.
 26. A method for handling an anomaly in a charging loop, being characterized at, comprising: receiving, by a terminal, charging protection indicative information from a power adapter if the anomaly occurs in the charging loop between the power adapter and the terminal; and controlling, by the terminal, the charging loop to enter into a protection state according to an indication of the charging protection indicative information.
 27. The method according to claim 26, being characterized at that, the power adapter is contacted with the terminal through a charging interface, wherein the charging interface comprises: a power wire for charging, and a data wire; and receiving, by the terminal, the charging protection indicative information from the power adapter comprises: receiving, by the terminal, the charging protection indicative information from the power adapter through the data wire in the charging interface.
 28. The method according to claim 26 or 27, being characterized at that, the anomaly occurring in the charging loop comprises at least one of following anomalies that: an output voltage of the power adapter is an over-voltage; an output current of the power adapter is an over-current; a voltage at two ends of a battery is an over-voltage; a current at the two ends of the battery is an over-current; and a temperature of the battery is an over-temperature.
 29. The method according to claim 28, being characterized at, further comprising: determining, by the terminal, a battery parameter of the battery, wherein the battery parameter is used to indicate the voltage at the two ends of the battery, the current at the two ends of the battery or the temperature of the battery; and sending, by the terminal, information indicating the battery parameter to the power adapter. 